﻿using System;
using UnityEngine;
using UnityEngine.UI;

public class NextBtn : MonoBehaviour
{
    public Text btnText;
    public Action onClick;
    public Image btnImg;
    public Color btnActiveColor = Color.white;
    public Color btnDisactiveColor = Color.white;
    public void SetText(string v)
    {
        this.btnText.text = v;
    }
    public void Active()
    {
        this.btnImg.color = btnActiveColor;
    }
    public void Disactive()
    {
        this.btnImg.color = btnDisactiveColor;
    }
    public void OnClick()
    {
        onClick?.Invoke();
    }
}
